<template>
  <div>

  <ImgUpload class="img-upload"
             @saveImg="mSaveImg"
  ></ImgUpload>

    <img :src="imgBase" alt="">

  </div>
</template>

<script>
  import ImgUpload from 'components/common/upload/ImgUpload'

  export default {
    name: "TestUpload",
    components: {
      ImgUpload,
    },
    data() {
      return {
        imgBase: '',
      }
    },
    methods: {
      mSaveImg({imgBase}) {
        this.imgBase = imgBase;
        console.log('imgBase = ' + imgBase);
      }
    }
  }
</script>

<style scoped>
  .img-upload {
    margin-left: 100px;
    margin-top: 100px;
  }
</style>